extprim
Thanks to RFC 1504 “int128”, you can use
i128
andu128
directly on nightly Rust starting from 1.16. Using the built-in types are preferred.
Extra primitive types for stable Rust. Currently includes:
u128
(unsigned 128-bit integers)i128
(signed 128-bit integers)
You may also find other primitive types in other crates:
u12
→ twelve_bitf16
→ halfd128
→ decimalComplex<T>
→ num-complex
Usage
# Cargo.toml
[]
= "1"
If you want to use the u128!()
and i128!()
macros, please include the extprim_literals
plugin.
# Cargo.toml
[]
= "1"
= "2"
Example
extern crate extprim_literals;
extern crate extprim;
use FromStr;
use i128;